<?php

use yii\db\Migration;

class m170524_072031_alter_message_config extends Migration
{
    public function up()
    {
        $this->addColumn('{{%message_config}}', 'mode', $this->smallInteger(2).' default 1 comment \'模式（1 共同体 2 综合体 3 管弦乐）\'');
    }

    public function down()
    {
        $this->dropColumn('{{%message_config}}', 'mode');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
